﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace A67枚举
{
    class Program
    {
        static void Main(string[] args)
        {
            Student s = new Student(Sex.boy);
        }
    }
    class Student
    {
        public Sex sex;//性别
        public Student(Sex sex)
        {
            this.sex = sex;
        }
    }
    enum Sex//性别枚举
    {
        boy=1,
        girl=2
    }
}
